import React, { Component } from 'react'
import { Route } from 'react-router-dom'
import './App.css'
import Search from './component/Search'
import NavLinkMenu from './component/NavLinkMenu'
import About from './pages/About'
import Home from './pages/Home'

export default class App extends Component {

  render() {
    return (
      <div>
        <Search/>
        <div>
          <NavLinkMenu/>
          <div>
            {/* 注册路由 */}
            <Route path='/about' component={About} />
            <Route path='/home' component={Home} />
          </div>
        </div>
      </div>
    )
  }
}
